package com.itdaan.portal.business.domain;

import java.util.HashMap;
import java.util.Map;

/**
 * @author www.itdaan.com
 */
public class BaseDomain {

	private int start = 0;
	
    private int end = 0;
	
    private int limit = 999999;
	
    private int page = 10;
	
    private int totalCount = 0;
	
    private String sortName;
	
    private String sortOrder;
	
    private Map<String, Object> dynamicProperties = new HashMap<String, Object>();
    // 用于页面中时间段的查询参数 开始时间 / 结束时间
	
    private String startTimeForCondition;
	
    private String endTimeForCondition;

    public Map<String, Object> getDynamicProperties() {
        return dynamicProperties;
    }

    public void setDynamicProperties(Map<String, Object> dynamicProperties) {
        this.dynamicProperties = dynamicProperties;
    }

    public void setDynamicProperty(String key, Object value) {
        this.dynamicProperties.put(key, value);
    }

    public Object getDynamicProperty(String key) {
        return this.dynamicProperties.get(key);
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public String getSortName() {
        return sortName;
    }

    public void setSortName(String sortName) {
        this.sortName = sortName;
    }

    public String getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(String sortOrder) {
        this.sortOrder = sortOrder;
    }

    public String getStartTimeForCondition() {
        return startTimeForCondition;
    }

    public void setStartTimeForCondition(String startTimeForCondition) {
        this.startTimeForCondition = startTimeForCondition;
    }

    public String getEndTimeForCondition() {
        return endTimeForCondition;
    }

    public void setEndTimeForCondition(String endTimeForCondition) {
        this.endTimeForCondition = endTimeForCondition;
    }

	public int getEnd() {
		return end;
	}

	public void setEnd(int end) {
		this.end = end;
	}
    
    
}
